package com.lantosec.hmrp.modules.system.vo;

import com.lantosec.hmrp.core.mvc.BaseVO;
import com.lantosec.hmrp.modules.system.entity.RegionalHead;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="assetsAreaManage对象", description="固定资产区域管理")
public class RegionalHeadVO extends BaseVO<RegionalHead> {
    @Override
    public RegionalHead convertToEntity() {
        return new RegionalHead(this);
    }

    public RegionalHeadVO(RegionalHead entity){
        this.areaName = entity.getAreaName();
        this.userName = entity.getUserName();
        this.userId = entity.getUserId();
        this.areaId = entity.getAreaId();
        this.deptId = entity.getDeptId();
        this.deptName = entity.getDeptName();
        this.flag = entity.getFlag();
    }

    @ApiModelProperty(value = "区域名称")
    private String areaName;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "区域ID")
    private String areaId;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "部门ID")
    private String deptId;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "全部标识")
    private String flag;
}
